CREATE TABLE [NUESTRA_RUBIA_ES_MEJOR].[Chofer](
	[Chofer_Id] [bigint] IDENTITY(1,1) NOT NULL,
	[Chofer_Dni] [numeric](18, 0) NOT NULL,
	[Chofer_Nombre] [varchar](255) NOT NULL,
	[Chofer_Apellido] [varchar](255) NOT NULL,
	[Chofer_Direccion] [varchar](255) NOT NULL,
	[Chofer_Telefono] [numeric](18, 0) NOT NULL,
	[Chofer_Mail] [varchar](50) NULL,
	[Chofer_Fecha_Nac] [datetime] NOT NULL,
	[Chofer_Habilitado] [bit] NOT NULL,
 CONSTRAINT [PK_Chofer] PRIMARY KEY CLUSTERED 
(
	[Chofer_Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO

ALTER TABLE NUESTRA_RUBIA_ES_MEJOR.Chofer ADD CONSTRAINT
	IX_Chofer_DNI UNIQUE NONCLUSTERED 
	(
	Chofer_Dni
	) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

GO